package org.hcyspartnoc.demo.common.exception.system;

import org.hcyspartnoc.demo.common.exception.BaseException;

import java.io.Serial;

public class SysRoleException extends BaseException {
    public static final String ROLE_HAS_EXISTS = "角色已存在";
    public static final String ROLE_NOT_EXISTS = "角色不存在";
    public static final String ROLE_COULD_NOT_REMOVE = "角色不允许删除";
    public static final String ROLE_COULD_NOT_ACT = "角色不允许操作";
    @Serial
    private static final long serialVersionUID = -4689790743700117731L;

    public SysRoleException(String msg) {
        super(msg);
    }

    public SysRoleException(String msg, int code) {
        super(msg, code);
    }
}
